import type { RouteRecordRaw } from 'vue-router'

function Layout() {
  return import('@/layouts/index.vue')
}

const routes: RouteRecordRaw = {
  path: '/sort',
  component: Layout,
  name: 'sort',
  meta: {
    title: '分类信息',
    icon: 'i-heroicons-solid:menu-alt-3',
  },
  children: [
    {
      path: 'page',
      name: 'sort_1',
      component: () => import('@/views/sort/page.vue'),
      meta: {
        title: '数据信息',
      },
    },
    {
      path: 'center_page',
      name: 'sort_2',
      component: () => import('@/views/sort/center/center_page.vue'),
      meta: {
        title: '管理中心',
      },
      children: [

      ],
    },
    {
      path: 'publish_manage',
      name: 'publish_manage',
      component: () => import('@/views/sort/publish/manage.vue'),
      meta: {
        title: '发布管理',
        menu: false,
      },
    },
    {
      path: 'fee_manage',
      name: 'fee_manage',
      component: () => import('@/views/sort/fee/manage.vue'),
      meta: {
        title: '收费管理',
        menu: false,
      },
    },
  ],
}

export default routes
